package com.nycreativity.elecreativity.entity.param.file

import com.baomidou.mybatisplus.annotation.IdType
import com.nycreativity.elecreativity.entity.BaseEntity
import com.baomidou.mybatisplus.annotation.TableId
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.springframework.web.multipart.MultipartFile
import javax.validation.constraints.NotEmpty
import javax.validation.constraints.NotNull

/**
 * <p>
 *  文件
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-25
 */
@ApiModel("文件上传参数")
class FileUploadParam {

    /**
     * 文件tag
     */
    @ApiModelProperty("文件tag")
    @NotEmpty
    var tag: String? = null

    /**
     * 文件二级tag
     */
    @ApiModelProperty("文件二级tag")
    @NotEmpty
    var secondaryTag: String? = null

    /**
     * 文件
     */
    @NotNull
    @ApiModelProperty("文件")
    var file: MultipartFile? = null

    /**
     * 文件名
     */
    @NotEmpty
    @ApiModelProperty("文件名")
    var fileName: String? = null

    /**
     * 文件描述
     */
    @ApiModelProperty("文件描述")
    var des: String? = null


    override fun toString(): String {
        return "File{" +
                ", tag=" + tag +
                ", secondaryTag=" + secondaryTag +
                ", fileName=" + fileName +
                ", des=" + des +
                "}"
    }
}
